<%-- 
    Document   : magPage
    Created on : Feb 25, 2012, 8:20:25 PM
    Author     : inahbanana
--%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.text.DateFormat"%>
<%@page import="java.sql.PreparedStatement"%>
<%@page import="java.sql.Connection"%>
<%@page import="DBConnection.ConnectionFactory"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Magazines</title>
        
        
        <link rel = "stylesheet" href= "main.css" type="text/css"/>
        <link rel = "stylesheet" href= "menu.css" type="text/css"/>
        <link rel = "stylesheet" href= "loginreg.css" type="text/css"/>
    </head>
    <body>
         <%
         String remoteAdd = request.getRemoteAddr();
        String Address = (String)session.getAttribute("IPAdd");
        String username = (String)session.getAttribute("username");
        
        if((String)session.getAttribute("username")== null)
            {
            response.sendRedirect("home.jsp");
            }
               
                             
             
        else{ %>
                 
   
          <label class="welcomemessage"> <% out.print("Welcome ");
                out.print(username);
                      out.println("!"); }%></label>
        <%--header--%>
        <div id="header">
           
        </div>
        <%--header--%>
        
        
        <%--menu--%>
        <div id="tabs24">   
             <ul>          
                <li><a href="aboutusPage.jsp" >About Us</a></li>
                <li><a href="userHomePage.jsp" >Home</a></li>
                <li><a href="bookPage.jsp" >Books</a></li>
                <li><a href="magPage.jsp" >Magazines</a></li>
                <li><a href="audioPage.jsp" >Audio CDs</a></li>
                <li><a href="dvdPage.jsp" >DVDs</a></li>
                <li><a href="creditCard.jsp" >Manage Credit Cards</a></li>
             </ul>   
        </div>
        <%--menu--%>
        
        <%--centercontent--%>
        
        <div id="maincontainer">
           <label>BESTSELLERS</label>
           <div id="BestSellersContainer">
               <div class="feat_prod_box">
               <div class="prod_img"><img class="thumb" width="129" height="208" src ="mag\mag17ks.jpg" /></div>
               <div class="box_top"></div>
               <div class="prod_det_box">
               <div class="box_center">
                    <div class="prod_title">Seventeen</div>
                    <p class="details"> Kirsten Stewart on the cover!</p>
                    <a href="details.html" class="more">- more details -</a>
                    <div class="clear"></div>           
               </div>
               </div>
               </div>
           <br>
           <br>
           <br>
           <%-- NEXT FEATURED --%>  
           <br>
               <div class="feat_prod_box">
               <div class="prod_img"><img class="thumb" width="129" height="208" src ="mag\mag17tm.jpg" /></div>
               <div class="box_top"></div>
               <div class="prod_det_box">
               <div class="box_center">
                    <div class="prod_title">Seventeen</div>
                    <p class="details"> Taylor Momsen on the cover!</p>
                    <a href="details.html" class="more">- more details -</a>
                    <div class="clear"></div>
               </div>
               </div>
               </div>
           
           <%-- NEXT FEATURED --%>  
           <br>
               <div class="feat_prod_box">
               <div class="prod_img"><img class="thumb" width="129" height="208" src ="mag\magFHMlj.jpg" /></div>
               <div class="box_top"></div>
               <div class="prod_det_box">
               <div class="box_center">
                    <div class="prod_title">FHM</div>
                    <p class="details"> LJ Reyes on the cover!</p>
                    <a href="details.html" class="more">- more details -</a>
                    <div class="clear"></div>
               </div>
               </div>
               </div>
           
           <br>
           <br>
           <br>
           </div>
       </div>
               <center>
        <form class="viewBooks" name="viewBooks" method="post" action="viewMags.jsp">
            <input type="submit" name="viewDvds" value="View Magazins"/>
        </form>
    </center>
       <%--centercontent--%>
    </body>
</html>
